public class TestVoidMethod {
    public static void main(String[] args) {
        // printGrade(78.5);
        // System.out.println("the Score is:");
        // System.out.println("the Score is:", 78.5);
        // System.out.println("the Score is:", "78.5");
        System.out.println("the Score is:" + " 78.5");
        System.out.println("the Score is: " + 78.5);
        // System.out.println(78.5);
        // System.out.println('the Grade is:');
        // System.out.println("the Grade is:");
        System.out.println("the Grade is:");
        printGrade(78.5);
        // System.out.println("the Grade is:"+printGrade(78.5));
        // System.out.println("the Grade is:", printGrade(78.5));
        System.out.println("the Grade is:"+ printGrade(78.5));
    }
    public static void printGrade(double score) {
        if (score >= 90.0) {
            System.out.println('A');
        }
        else if (score >= 80.0) {
            System.out.println('B');
        }
        else if (score >= 70.0) {
            System.out.println('C');
            // string grade = 'C';
            string[] grade = 'C';
            // return 'C';
            return grade;
        }
        else if (score >= 60.0) {
            System.out.println('D');
        }
        else {
            System.out.println('F');
        }
    }
}

